<template>
	<view class="agreement">
		<u-parse :html="content"></u-parse>
	</view>
</template>

<script>
	import service from '@/store/service.js';
	import jyfParser from "@/components/jyf-parser/jyf-parser";
	export default{
		data() {
			return {
				content:` `
			}
		},
		onLoad() {
			this.getContent()
		},
		  components: {
		    jyfParser
		  },
		methods:{
			getContent(){
				this.$http.get(service.api.index.getRegContent).then(res=>{
					if(res.code===1){
						console.log(res);
						this.content = res.data.content
					}else{
						this.$utils.showMsg(res.info)
					}
				})
			}
		}
	}
</script>

<style scoped>
	.agreement{
		padding: 20rpx;
		color: #666;
	}
</style>
